﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Way
{
    class Wayss
    {
        //静态字段

        public static string comName = "小次郎点餐";



        //非静态字段
        public string name = "小次郎";


        //非静态方法

        public void ShowInfo()
        {
            try
            {
                Console.WriteLine("欢迎来到{0}进入{1}", comName, name);
            }
            catch (Exception ex)
            {
                Console.WriteLine("异常信息：{0}", ex.Message);
                //throw;
            }
            finally
            {
                Console.WriteLine("异常发生与否都实行的语句！！");
            }
            
        }


        //静态方法
        public static void Show_S_Info()
        {
            Console.WriteLine("{0}欢迎您", comName);
        }
    }
}
